wayland: Maybe postpone xdg-foreign state setup until mapping
authorJonas Ådahl <jadahl@gmail.com>
Fri, 1 Dec 2017 04:18:30 +0000 (12:18 +0800)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 8 Dec 2017 03:13:39 +0000 (22:13 -0500)
commitdee5142c919fc197cec5a8832f12561c977cb5b5
treee882d1e34f270e7d66d0a7fcda9e0dbffc535407
parent279b81d20211c301ce5ba6678a398db483a17409
wayland: Maybe postpone xdg-foreign state setup until mapping

In order to map a window with the correct initial parent-child
relationship when a modal dialog is set up to be a child of an imported
foreign window, the relationship must be set up before the window is
mapped.

In order to do this, if a window is not yet mapped, postpone the
relationship setup until when the window is eventually mapped.

https://bugzilla.gnome.org/show_bug.cgi?id=791062
gdk/wayland/gdkwindow-wayland.c